package com.atguigu.service;

import com.atguigu.pojo.Delivery;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface DeliveryService {
    /**
     * 查询快递记录
     * @param userId
     * @return
     * @throws Exception
     */
    List<Delivery> findAllDeliveryByUserId(Integer userId) throws  Exception;

    /**
     * 添加快递
     * @param uid
     * @param parameterMap
     */
    void addDelivery(Integer uid, Map<String, String[]> parameterMap) throws SQLException;
}
